class User < ActiveRecord::Base

  #-----validations
  validates_presence_of :password
  validates_presence_of :complete_name
  
  #------relations
  belongs_to :role
  has_many :tasks
  has_many :projects

  #---------- model configuration
  acts_as_authentic do |c|
    c.logged_in_timeout = 10.minute
  end

end
